package com.wyj.wuliwuli.entity;

import lombok.Data;

import javax.persistence.*;

@Data
@Entity
@Table(name = "wuli_video_comment_detail")
public class WuliVideoCommentDetail extends BaseEntity {

    @ManyToOne
    @JoinColumn(name = "comment_id", columnDefinition = "bigint(20) COMMENT '评论ID'")
    private WuliVideoComment comment;

    @ManyToOne
    @JoinColumn(name = "from_user_id", columnDefinition = "bigint(20) COMMENT '来自用户ID'")
    private WuliUser fromUser;

    @ManyToOne
    @JoinColumn(name = "to_user_id", columnDefinition = "bigint(20) COMMENT '发给用户ID'")
    private WuliUser toUser;

    @Column(columnDefinition="varchar(500) COMMENT '评论内容'")
    private String msg;
}
